package com.neuedu.his.mapper;

import com.neuedu.his.po.Checkapply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * @author root
 * @description 针对表【checkapply】的数据库操作Mapper
 * @createDate 2025-06-25 10:55:53
 * @Entity com.neuedu.his.po.Checkapply
 */
public interface CheckapplyMapper extends BaseMapper<Checkapply> {

    @MapKey("getinfoByMedicalID")
    public List<Map<String, Object>> getinfoByMedicalID(int id);

    // 批量更新状态
    int updateStateByIds(@Param("ids") List<Integer> ids, @Param("state") Integer state);


    // 录入结果
    int updateResult(@Param("id") Integer id,
                     @Param("result") String result,
                     @Param("resultOperID") Integer resultOperID,
                     @Param("resultTime") LocalDateTime resultTime);

}









